'use strict';
const {
  Model
} = require('sequelize');
module.exports = (sequelize, DataTypes) => {
  class BlindDatesMember extends Model {
    /**
     * Helper method for defining associations.
     * This method is not a part of Sequelize lifecycle.
     * The `models/index` file will call this method automatically.
     */
    static associate(models) {
      // define association here
    }
  }
  BlindDatesMember.init({
    id: {
      type: DataTypes.INTEGER,
      primaryKey: true, // 将 'id' 列标记为主键
      autoIncrement: true, // 如果 'id' 是自增的，请设置为 true
    },
    // username: DataTypes.STRING,
    // password: DataTypes.STRING,
    name: DataTypes.STRING,
    gender: DataTypes.STRING,
    avatar: DataTypes.STRING,
    date_of_birth: DataTypes.DATE,
    height: DataTypes.DOUBLE,
    weight: DataTypes.DOUBLE,
    work: DataTypes.STRING,
    monthly_salary: DataTypes.DECIMAL,
    hourse: DataTypes.STRING,
    character: DataTypes.STRING,
    education_background: DataTypes.STRING,
    demand: DataTypes.STRING,
  }, {
    sequelize,
    modelName: 'BlindDatesMember',
    tableName: 'blind_dates_member',
    timestamps: false, // 禁用自动添加的 'createdAt' 和 'updatedAt' 字段
  });
  return BlindDatesMember;
};